﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//using DevComponents.DotNetBar.Ribbon;

//Thêm thư viện 
using KaraokeManagementBUS;
using KaraokeManagementDTO;

namespace KaraokeManagement
{
    public partial class frmMain : DevComponents.DotNetBar.Office2007Form
    {
        ucQuanLyPhongHat qlPhongHat = new ucQuanLyPhongHat();
        ucQuanLyKhachHang qlKhachHang = new ucQuanLyKhachHang();
        ucQuanLyPhongHat2 qlPhongHat2 = new ucQuanLyPhongHat2();
        ucQuanLyNhanVien qlNhanVien = new ucQuanLyNhanVien();
        ucQuanLyHangHoa qlHangHoa = new ucQuanLyHangHoa();

        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            btnQuanLy.Focus();
            btnQuanLyDichVuPhongHat.Focus();
            this.lbTieuDe.Text = "Quản lý dịch vụ phòng hát";
            this.panelContent.Controls.Clear();
            this.qlPhongHat.Size = this.panelContent.Size;
            this.panelContent.Controls.Add(qlPhongHat);
            this.LayoutContent.Select();
        }

        

        private void btnQuanLyPhongHat_Click_1(object sender, EventArgs e)
        {
            qlPhongHat2 = new ucQuanLyPhongHat2();
            this.lbTieuDe.Text = "Quản lý dịch vụ phòng hát";
            this.panelContent.Controls.Clear();
            this.qlPhongHat.Size = this.panelContent.Size;
            this.panelContent.Controls.Add(qlPhongHat);
        }

        private void btnQuanLyKhachHang_Click(object sender, EventArgs e)
        {
            qlKhachHang = new ucQuanLyKhachHang();
            this.lbTieuDe.Text = "Quản lý khách hàng";
            this.panelContent.Controls.Clear();
            this.qlKhachHang.Size = this.panelContent.Size;
            this.panelContent.Controls.Add(qlKhachHang);
        }

        private void btnQuanLyHangHoa_Click(object sender, EventArgs e)
        {
            qlHangHoa = new ucQuanLyHangHoa();
            this.lbTieuDe.Text = "Quản lý hàng hóa";
            this.panelContent.Controls.Clear();
            this.qlHangHoa.Size = this.panelContent.Size;
            this.panelContent.Controls.Add(qlHangHoa);
        }

        private void btnQuanLyNhanVien_Click(object sender, EventArgs e)
        {
            qlNhanVien = new ucQuanLyNhanVien();
            this.lbTieuDe.Text = "Quản lý nhân viên";
            this.panelContent.Controls.Clear();
            this.qlNhanVien.Size = this.panelContent.Size;
            this.panelContent.Controls.Add(qlNhanVien);
        }

        private void btnQuanLyPhongHat_Click(object sender, EventArgs e)
        {
            qlPhongHat2 = new ucQuanLyPhongHat2();
            this.lbTieuDe.Text = "Quản lý phòng hát";
            this.panelContent.Controls.Clear();
            this.qlPhongHat2.Size = this.panelContent.Size;
            this.panelContent.Controls.Add(qlPhongHat2);
        }
    }
}
